/**
 * 
 */
package com.wsd.dao;

import java.util.List;

import com.wsd.bean.Link;


/**
 * @author Administrator
 *
 */
public interface LinkDaoInterface {
	public void save(Link transientInstance);

	public void delete(Link persistentInstance);

	public Link findById(java.lang.Integer id);

	public List<Link> findAll();

	/**
	 * @param start
	 * @param pagesize
	 * @return
	 */
	public List<Link> findOnePage(int start, int pagesize);

	/**
	 * @return
	 */
	@SuppressWarnings("unchecked")
	public List getTotallines();

	/**
	 * @param start
	 * @param limit
	 * @return
	 */
	public List<Link> findAll(int start, int limit);

	/**
	 * @return
	 */
	public int findAllCount();

	/**
	 * @param id
	 */
	public void deleteById(int id);
	
	public void update(Link link);

}
